package com.tougutips.cookbook.service.es;

import com.ruoyi.common.core.domain.R;
import com.tougutips.cookbook.entity.Cookbook;
import com.tougutips.cookbook.mapper.CookbookMapperES;

import java.util.List;

/**
 * @author YSY
 * @Description
 * @DateTime 2022/7/21 20:14
 * @Email 296242766@qq.com
 */
public interface CookbookServiceES {
    /**
     * 所有
     * @return
     */
    List<Cookbook> findAll();
    /**
     * 用ES查找名称匹配的
     * @return 匹配的菜谱名
     */
    List<Cookbook> findName(String name);

    Cookbook findById(Long id);

    Cookbook addOne(Cookbook cookbook);
}
